import serial
import time
import binascii


if __name__ == '__main__':
    ser = serial.Serial(4,1200)  # open first serial port
    print ser

    while (1):
        ser.write('ok')
        print 'send frame'
        time.sleep(1)

        
    print 'end'